package com.lovo.sheyingback.service;

import com.github.pagehelper.PageInfo;
import com.lovo.sheyingback.bean.User;

import java.util.Map;

/**
* @author BDK-THINKPAD
* @description 针对表【t_user(用户表)】的数据库操作Service
* @createDate 2023-07-24 21:31:45
*/
public interface UserService{
    PageInfo<User> listUser(Integer current, Integer pageSize);
    User getByUsername(String username);
    Map listUserRole(Integer userId);
    Map listUserFunction(Integer userId);
    User login(User user);
    User getById(Integer id);
    int assignUserRole(Integer userId,Integer [] roleIds);
    int assignUserFunction(Integer userId,Integer [] functionIds);
    int insert(User user);
    int update(User user);
    int delete(Integer id);
}
